const modules = {}
const result = import.meta.glob('./*.js')

console.log('import.meta', import.meta)
console.log('import.meta.glob', import.meta.glob)
console.log('import.meta.globEager', import.meta.globEager)

Object.keys(result).forEach(key => {
    const name = key.replace(/^\.\/(.*)\.js$/, '$1')
    modules[name] = result[key].default || result[key]
})

export default modules
